package rsj.proxy;

import java.sql.Connection;

/**
 * 执行sql函数式接口
 *
 * @author yuanqinglong
 * @since 2021/5/8 9:44
 */
@FunctionalInterface
public interface PreExecuteStatementProcessor {

    /**
     * 执行sql
     *
     * @param connection 数据库连接
     * @param sql        sql
     * @param param      参数
     * @return 结果
     * @throws Exception 异常
     */
    Object execute(Connection connection, String sql, Object... param) throws Exception;
}
